import request from '@/utils/request'

// 查询洗车订单列表
export function listCarwash(query) {
  return request({
    url: '/orderManagement/carwash/list',
    method: 'get',
    params: query
  })
}

// 查询洗车订单详细
export function getCarwash(id) {
  return request({
    url: '/orderManagement/carwash/' + id,
    method: 'get'
  })
}

// 新增洗车订单
export function addCarwash(data) {
  return request({
    url: '/orderManagement/carwash',
    method: 'post',
    data: data
  })
}

// 修改洗车订单
export function updateCarwash(data) {
  return request({
    url: '/orderManagement/carwash',
    method: 'put',
    data: data
  })
}

// 删除洗车订单
export function delCarwash(id) {
  return request({
    url: '/orderManagement/carwash/' + id,
    method: 'delete'
  })
}
